#-*- coding:utf-8 -*-
from django.db import models

# Create your models here.
class UserProfile(models.Model):
    class Meta:
        verbose_name = u'关注者'
        verbose_name_plural = verbose_name

    name = models.CharField(max_length=20, verbose_name=u'用户名')
    openId = models.CharField(max_length=50, unique=True, verbose_name=u'Open ID')
    stu_id = models.IntegerField(max_length=12, unique=True,blank=True, verbose_name=u'学号')
    phone = models.CharField(max_length=20, blank=True, verbose_name=u'电话')


    def __unicode__(self):
        return self.name